package com.cloud.pole.user.biz.account;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.cloud.pole.common.biz.BaseBiz;
import com.cloud.pole.mapper.account.UserAccountDetailMapper;
import com.cloud.pole.mapper.account.UserWithdrawMapper;
import com.cloud.pole.user.model.entity.account.UserAccount;
import com.cloud.pole.user.model.entity.account.UserWithdraw;

/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-06-08 16:23
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class UserWithdrawBiz extends BaseBiz<UserWithdrawMapper, UserWithdraw> {
	@Autowired
	UserWithdrawMapper userWithdrawMapper;

    public UserWithdraw selectByPrimaryKey(Integer id) {
        return super.selectById(id);
    }
    
    public void deleteByPrimaryKey(Integer id) {
    	super.deleteById(id);
    }
    
	/**
	 * 添加返回值
	 * @param entity
	 */
    public void insertUseGeneratedKeys(UserWithdraw entity) {
    	userWithdrawMapper.insertUseGeneratedKeys(entity);
    }
}
